package com.oocl.o2o.admin.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.oocl.o2o.admin.dao.ManagerDao;
import com.oocl.o2o.admin.entity.Manager;
import com.oocl.o2o.admin.service.ManagerService;

@Service(value="managerServiceImpl")
public class ManagerServiceImpl implements ManagerService{

	@Resource(name="managerDaoImpl")
	private ManagerDao managerDao;
	@Override
	public Manager findByUnameAndPassword(String uname, String password) {
		// TODO Auto-generated method stub
		return managerDao.findByUnameAndPassword(uname, password);
	}

	@Override
	public Manager findByUname(String uname) {
		// TODO Auto-generated method stub
		return managerDao.findByUname(uname);
	}

}
